import os
if os.path.exists(r"d:/homework/chapter10"):
    print('pass')
else:
    os.makedirs(r"d:/homework/chapter10")
os.chdir(r"d:/homework/chapter10")
f = open("profile.josn",'w')
import json
dict={'name':'陈凝舒','stuId':'23007629','age':'18','height':'165','school':'shunzhi'
      ,'blood group':'A','sex':'female'}
data = json.dumps(dict)
f.write(data)
f.close